import request from '@/utils/request'

export function getCurrencyList(query) {
  return request({
    url: '/finance/currency/getList',
    method: 'post',
    data: query
  })
}
export function getCurrencyUseable(query) {
  return request({
    url: '/finance/currency/getAvailable',
    method: 'post',
    data: query
  })
}

export function getCurrencyDetail(id) {
  return request({
    url: '/finance/currency/getDetail',
    method: 'post',
    data: id 
  })
}

export function saveCurrency(id) {
  return request({
    url: '/finance/currency/save',
    method: 'post',
    data: id
  })
}

export function removeCurrencyByID(id) {
  return request({
    url: '/finance/currency/remove',
    method: 'post',
    data: id
  })
}

export function changeStatusByCurrencyID(formdata) {
  return request({
    url: '/finance/currency/change-status',
    method: 'post',
    data: formdata
  })
}

